<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form th:action="@{/product}" method="post">
    <table style="margin: auto">
        <tr>
            <td>商品 ID：</td>
            <td><input type="text" name="productId" required></td>
        </tr>
        <tr>
            <td>商品名称：</td>
            <td><input type="text" name="productName" required></td>
        </tr>
        <tr>
            <td>商品价格：</td>
            <td><input type="text" name="price" required></td>
        </tr>
        <tr>
            <td>商品库存：</td>
            <td><input type="text" name="stock" required></td>
        </tr>
        <tr>
            <td>商品简介：</td>
            <td><textarea name="introduction" rows="10" cols="30"></textarea><br></td>
        </tr>
        <tr>
            <td colspan="2" align="center"><input type="submit" value="新增商品"></td>
        </tr>
    </table>
</form>
</body>
</html>
